<template>
  <div class="Login">
    <div class="container">
      <div class="left">
        <img src="./images/logo.png" alt="" />
      </div>
      <div class="right">
        <h2>宠物网用户登录</h2>
        <div class="user">
          <i class="iconfont icon-yonghu1"></i>
          <input type="text" placeholder="请输入您的账号" />
        </div>
        <div class="user">
          <i class="iconfont icon-mima"></i>
          <input type="password" placeholder="请输入您的密码" />
        </div>
        <div class="remember">
          <input type="checkbox" /><router-link to="#"
            >我已同意协议</router-link
          >
        </div>
        <div class="buttom">登录</div>
        <div class="buttom">注册</div>
        <div class="more">
          <span>忘记密码？</span>
          <span>新用户注册</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "myLogon",
};
</script>

<style lang="less" scoped>
.Login {
  width: 100%;
  height: 100vh;
  background: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg2.ctoutiao.com%2Fuploads%2F2020%2F06%2F19%2Fe5c7f48ae115a849ca2e1315616e72e5.jpg&refer=http%3A%2F%2Fimg2.ctoutiao.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663080904&t=8b454fc080d1cd308289233a4911c7c8")
    center no-repeat;
  background-size: cover;
  .container {
    width: 640px;
    height: 360px;
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    display: flex;
    .left {
      flex: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: 240px;
        height: 240px;
        padding-left: 20px;
      }
    }
    .right {
      flex: 50%;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      h2 {
        padding: 25px 0 25px 0;
        font-size: 24px;
      }
      .user {
        margin-bottom: 14px;
        position: relative;
        width: 80%;
        i {
          position: absolute;
          font-size: 16px;
          color: #ccc;
          margin-top: 14px;
          margin-left: 14px;
        }
        input {
          font-size: 14px;
          width: 100%;
          height: 40px;
          outline: none;
          padding-left: 38px;
          box-sizing: border-box;
          color: #666;
          caret-color: #ccc;
          border: 1px solid #bbb;
          &::-webkit-input-placeholder {
            color: #bbb;
          }
        }
      }
      .remember {
        padding-bottom: 14px;
        margin-top: -6px;
        width: 80%;
        input {
          cursor: pointer;
          margin-right: 4px;
          vertical-align: -2px;
        }
        a {
          font-size: 12px;
          color: #333;
        }
      }
      .buttom {
        cursor: pointer;
        width: 80%;
        background-color: #1ea8a6;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #fff;
        margin-bottom: 14px;
        &:hover {
          background-color: #1ea8a6d1;
        }
      }
      .more {
        padding-bottom: 20px;
        display: flex;
        width: 80%;
        justify-content: space-between;
        font-size: 12px;
        color: #333;
        span {
          cursor: pointer;
          display: block;

          &:hover {
            text-decoration: underline;
          }
          &:first-child:hover {
            color: #f04336;
          }
          &:last-child:hover {
            color: #1ea8a6;
          }
        }
      }
    }
  }
}
</style>